// 找到输入的字符串里有几个'a'
#include <stdio.h>

int main(int argc, char *argv[])
{
    printf(argv[1]);

    /*char *p = argv[1];
    while(*p != 0){
        printf("%c\n", *p);
        p++;
    }*/

    /*int count = 0;
    char *p = argv[1];
    while(*p != 0){
        if(*p == 'a')
        {
            count++;
            printf("%c -> %d\n", *p, count);
        }
        else
        {
            printf("%c\n", *p);
        }

        p++;
    }

    printf("=====\n");
    if(count == 0)
        printf("There isn't any 'a' in '%s'", count, argv[1]);
    if(count == 1)
        printf("There's only %d 'a' in '%s'", count, argv[1]);
    else
        printf("There're %d 'a' in '%s'", count, argv[1]);*/
    
    return 0;
}

/* 问题一: 计算字符串长度
C03_length.exe abcdefg
7

C03_length.exe 112233
6
*/

/* 问题二: 比较2个字符串是否相等
C03_equal.exe abc abc
Yes

C03_equal.exe abc 123
No

C03_equal.exe abc abc9
No
*/